﻿<Window x:Class="Refugees.Views.Windows.Registration"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:Refugees.Views.Windows"
        mc:Ignorable="d"
        Title="Регистрация" Height="550" Width="800">
    <Grid>
        <Grid.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FF819B3D"/>
                <GradientStop Color="#FFA3DAD8" Offset="0.626"/>
            </LinearGradientBrush>
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="0.25*"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="0.1*"/>
            <RowDefinition Height="0.3*"/>
        </Grid.RowDefinitions>

        <Button Grid.Row="0" HorizontalAlignment="Right" Margin="15 0"
                Content="Назад"
                Click="BackClick"
                VerticalAlignment="Center" Style="{DynamicResource Vhod}"/>
        <Label HorizontalAlignment="Center" VerticalAlignment="Center"
                   Foreground="Black" Content="Добро пожаловать"
                   FontSize="36"
                   FontStyle="Italic" FontWeight="Bold" FontFamily="Segoe Script"/>

        <Grid Grid.Row="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="0.2*"/>
                <RowDefinition Height="0.3*"/>
                <RowDefinition Height="0.3*"/>
                <RowDefinition Height="0.3*"/>
                <RowDefinition Height="0.2*"/>
            </Grid.RowDefinitions>
            <GroupBox Header="Логин" 
           Grid.Row="1">
                <TextBox Name="Login" Style="{DynamicResource Login}">
                </TextBox>
            </GroupBox>
            <GroupBox Grid.Row="2"
           Header="Телефон">
                <TextBox x:Name="Phone" Style="{DynamicResource Login}" />
            </GroupBox>
            <GroupBox Grid.Row="3"
        Header="Пароль" >
                <PasswordBox x:Name="Password" Style="{DynamicResource Password}" />
            </GroupBox>
        </Grid>


        <Button Grid.Row="5"
                Content="Регистрация"
                Click="RegistrationClick"
                VerticalAlignment="Center" Style="{DynamicResource Vhod}"/>
    </Grid>
</Window>
